package com.hhss.eurekafeignclient.config;

import feign.RetryableException;
import feign.Retryer;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.TimeUnit;

/**
 * @Auther: zcc
 * @Date: 19-9-30 11:28
 * @Description:
 */
@Configuration
public class FeignConfig {

    public Retryer feignRetryer(){
        return new Retryer.Default(100, 1000,5);
    }
}
